home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJLSR200.ZIP / src / libc / posix / signal / sigempty.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-02  |  286 b   |  18 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <errno.h>
  3. #include <signal.h>
  4.  
  5. int
  6. sigemptyset(sigset_t *_set)
  7. {
  8.   int i;
  9.   if (_set == 0)
  10.   {
  11.     errno = EINVAL;
  12.     return -1;
  13.   }
  14.   for (i=0; i<10; i++)
  15.     _set->__bits[i] = 0;
  16.   return 0;
  17. }
  18.